import request from '@/utils/request'

// 查询清单详情列表
export function listProduct(query) {
  return request({
    url: '/manage/product/list',
    method: 'get',
    params: query
  })
}

// 查询清单详情详细
export function getProduct(productId) {
  return request({
    url: '/manage/product/' + productId,
    method: 'get'
  })
}

// 新增清单详情
export function addProduct(data) {
  return request({
    url: '/manage/product',
    method: 'post',
    data: data
  })
}

// 修改清单详情
export function updateProduct(data) {
  return request({
    url: '/manage/product',
    method: 'put',
    data: data
  })
}

// 修改清单详情
export function completeProducts(productId) {
  return request({
    url: '/manage/product/' + productId,
    method: 'put',
  })
}

// 删除清单详情
export function delProduct(productId) {
  return request({
    url: '/manage/product/' + productId,
    method: 'delete'
  })
}
